<!--
 * @Author: your name
 * @Date: 2020-12-18 16:33:47
 * @LastEditTime: 2020-12-18 16:40:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basicjs\kongjian\zuobiao.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>坐标判断</title>
    <style>
        div{
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
    <div></div>

    <script>
        //返回指定坐标的元素集合
        // const info = document.elementsFromPoint(100,100);//zuobiao.html:28 (3) [div, body, html]
        // console.log(info);

        //获取坐标点上顶级元素
        // const info = document.elementFromPoint(500,500);
        // console.log(info);
    </script>
</body>
</html>
